package edu.ntu.im.p2ptrade.entity;

import java.util.Date;
import java.util.LinkedList;
import java.util.List;

public class Transaction {
	String id;
	Date date;
	TradeInfo part1;
	TradeInfo part2;
	
	public static class TradeInfo{
		String owner;
		List<Item> items = new LinkedList<Item>();
		public TradeInfo(String owner){
			this.owner = owner;
		}
		public List<Item> getItems() {
			return items;
		}
		public void setItems(List<Item> items) {
			this.items = items;
		}
		public String getOwner() {
			return owner;
		}
		public void setOwner(String owner) {
			this.owner = owner;
		}
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public TradeInfo getPart1() {
		return part1;
	}

	public void setPart1(TradeInfo part1) {
		this.part1 = part1;
	}

	public TradeInfo getPart2() {
		return part2;
	}

	public void setPart2(TradeInfo part2) {
		this.part2 = part2;
	}
	
}
